package Code.Day11_20241012.com.dx.day11;


/**
 * @ClassName Test01
 * @Description FileUtil测试
 * @Author 12994
 * @Date 2024/10/12 11:37
 * @Version 1.0
 **/
public class Test01 {
    public static void main(String[] args) {
        try {
            FileUtil.newFolder("./test/Folder");
            FileUtil.createFile("./test/Folder/test.tmp");

            FileUtil.writeByBufferedWriter("./test/Folder/test.tmp", "{a:'123',}");

            FileUtil.getFileDetail("./test/Folder/test.tmp");

            FileUtil.recursionShowFileList("./");

            FileUtil.deleteDirectory("./test/Folder");
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
    }
}
